package com.google.ads;

import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.webkit.WebView;
import com.google.ads.b.e;
import com.google.ads.util.m;
import java.util.Date;
import java.util.Locale;

public final class q
{
  private static final e a = (e)e.a.b();

  public static void a(Activity paramActivity)
  {
    new Thread(new r(paramActivity)).start();
  }

  public static void a(Activity paramActivity, WebView paramWebView, String paramString)
  {
    new Thread(new s(paramActivity, paramWebView, paramString)).start();
  }

  public static void a(WebView paramWebView, String paramString)
  {
    a.a(paramWebView, String.format(Locale.US, "(G_resizeIframe(%s))", new Object[] { paramString }));
  }

  public static void a(WebView paramWebView, boolean paramBoolean)
  {
    e locale = a;
    Locale localLocale = Locale.US;
    Object[] arrayOfObject = new Object[1];
    arrayOfObject[0] = Boolean.valueOf(paramBoolean);
    locale.a(paramWebView, String.format(localLocale, "(G_updatePlusOne(%b))", arrayOfObject));
  }

  public static boolean a(Context paramContext, long paramLong)
  {
    return a(paramContext, paramLong, PreferenceManager.getDefaultSharedPreferences(paramContext.getApplicationContext()));
  }

  static boolean a(Context paramContext, long paramLong, SharedPreferences paramSharedPreferences)
  {
    return (u.a(paramContext)) && ((!paramSharedPreferences.contains("drt")) || (!paramSharedPreferences.contains("drt_ts")) || (paramSharedPreferences.getLong("drt_ts", 0L) < new Date().getTime() - paramLong));
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.google.ads.q
 * JD-Core Version:    0.6.2
 */